package com.region.loadbalancer.listener;

import com.region.loadbalancer.group.Server;

/**
 * Connection Listener
 *
 * @author liujieyu
 * @date 2023/5/24 23:53
 * @desciption
 */
public interface ConnectionListener {

    /**
     * Execution method when disconnected
     *
     * @param groupName
     * @param server
     */
    void disconnect(String groupName, Server server);

    /**
     * Execution method when connected
     *
     * @param groupName
     * @param server
     */
    void connect(String groupName, Server server);

}
